package com.onec.service.channel.dao;

import com.onec.service.api.dao.BaseRepository;
import com.onec.service.api.enums.ProductEnum;
import com.onec.service.channel.entity.ChannelMerchant;
import org.springframework.data.repository.RepositoryDefinition;

import java.util.List;

/**
 * @author ONEC
 */
@RepositoryDefinition(domainClass = ChannelMerchant.class, idClass = Long.class)
public interface ChannelMerchantRepository extends BaseRepository<ChannelMerchant, Long> {

    ChannelMerchant findByChannelIdAndMerchantNoAndProduct(long channelId, String merchantNo, ProductEnum product);

    List<ChannelMerchant> findByMerchantNoAndProduct(String merchantNo, ProductEnum productEnum);
}
